#include <AEEngine.h>

static DWORD dwTlsIndex;

BOOL WINAPI DllMain(HINSTANCE hinstDLL, // DLL module handle
    DWORD fdwReason,                    // reason called
    LPVOID lpvReserved)                 // reserved
{ 
    LPVOID lpvData; 
    BOOL fIgnore; 
	AEMemoryManager *lpMgr;
	switch (fdwReason)
	{
		case DLL_PROCESS_ATTACH: 
			OutputDebugString("DllMain::DLL_PROCESS_ATTACH\n");
			lpMgr = AEMemoryManager::GetInstancePtr();
			break;
		case DLL_THREAD_ATTACH: 
			OutputDebugString("DllMain::DLL_THREAD_ATTACH\n");
			break;
		case DLL_THREAD_DETACH: 
			OutputDebugString("DllMain::DLL_THREAD_DETACH\n");
			break;
		case DLL_PROCESS_DETACH: 
			OutputDebugString("DllMain::DLL_PROCESS_DETACH\n");
			break;
		default: OutputDebugString("DllMain::default\n");break;
	}

	return TRUE;
}